//
//  BWStatuesCell.swift
//  weibo
//
//  Created by libowen on 16/5/24.
//  Copyright © 2016年 libowen. All rights reserved.
//

import UIKit

class BWStatuesCell: UITableViewCell {
    var status: BWStatus? {
        didSet {
            statusOriginalView.status = status
        }
    }
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.backgroundColor = randomColor()
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }


    private func setupUI() {
        contentView.addSubview(statusOriginalView)
        statusOriginalView.snp_makeConstraints { (make) -> Void in
            make.top.right.left.equalTo(self)
        
        }
    }
    private lazy var statusOriginalView: BWStatuesCellMargin = BWStatuesCellMargin()
}
































